from django.contrib import admin
from dictionary.models import Dictionary, DictionaryDetail


@admin.register(Dictionary)
class DictionaryAdmin(admin.ModelAdmin):
    list_display = ('dict_name', 'dict_key', 'dict_type', 'dict_group', 'dict_desc')
    search_fields = ('dict_name', 'dict_key', 'dict_type', 'dict_group', 'dict_desc')


@admin.register(DictionaryDetail)
class DictionaryDetailAdmin(admin.ModelAdmin):
    list_display = ('dict', 'dict_detail_name', 'dict_detail_key', 'dict_detail_value', 'dict_detail_desc')
    search_fields = ('dict', 'dict_detail_name', 'dict_detail_key', 'dict_detail_value', 'dict_detail_desc')
